package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : PaiTaSuo
 * Date : 2016/6/20
 * Description :  验证图形验证码
 */
public class ApiValidateGraphic extends ApiBaseParamAbstract {
    public ApiValidateGraphic(String appKey, String code, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mParams.put("appKey", appKey);
        mParams.put("code", code);
    }

    @Override
    public Call<RootResult> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getValidateGraphic(mParams);
    }
}
